<style>
    .end{width: 147px;}
</style>
<div class="row"> <h3 class="page-header">实验项目分配
    <small id="button_win">点击显示菜单</small></h3></div>
<div class="row">
     <div class="panel panel-default">
        <div class="panel-body">
            <form action='{:U("Jxsygl/jxsykcjh")}' class="form-inline text-right m-b-5 fr">
                部门：
                <select name="bm" onchange="submit();">
                    <volist name="select_bm" id="vo">
                        <option value="{$vo.id}" <eq name="select_info.bm" value="$vo.id">selected</eq>>{$vo.name}</option>
                    </volist>
                </select>
                年份：
                <select name="nf">
                    <volist name="select_nf" id="vo">
                        <option value="{$vo}" <eq name="select_info.date_y" value="$vo">selected</eq>>{$vo}年</option>
                    </volist>
                </select>
                月份：
                <select name="yf">
                    <option value="1" <if condition="$select_info.yf eq 1">selected</if>>1月</option>
                    <option value="2" <if condition="$select_info.yf eq 2">selected</if>>2月</option>
                    <option value="3" <if condition="$select_info.yf eq 3">selected</if>>3月</option>
                    <option value="4" <if condition="$select_info.yf eq 4">selected</if>>4月</option>
                    <option value="5" <if condition="$select_info.yf eq 5">selected</if>>5月</option>
                    <option value="6" <if condition="$select_info.yf eq 6">selected</if>>6月</option>
                    <option value="7" <if condition="$select_info.yf eq 7">selected</if>>7月</option>
                    <option value="8" <if condition="$select_info.yf eq 8">selected</if>>8月</option>
                    <option value="9" <if condition="$select_info.yf eq 9">selected</if>>9月</option>
                    <option value="10" <if condition="$select_info.yf eq 10">selected</if>>10月</option>
                    <option value="11" <if condition="$select_info.yf eq 11">selected</if>>11月</option>
                    <option value="12" <if condition="$select_info.yf eq 12">selected</if>>12月</option>
                </select>

                <button class="btn btn-primary" type="submit">搜索</button>
                <button class="btn btn-primary" type="reset">重置</button>
            </form>
        </div>


        <link href="/Public/Admin/css/duty.css" rel="stylesheet" type="text/css" />

        <div class="sheet">
            <div class="sheet_time" style="width:992px;">
                <ul>
                    <li>星期日<div class="form_right"></div></li>
                    <li>星期一<div class="form_right"></div></li>
                    <li>星期二<div class="form_right"></div></li>
                    <li>星期三<div class="form_right"></div></li>
                    <li>星期四<div class="form_right"></div></li>
                    <li>星期五<div class="form_right"></div></li>
                    <li>星期六</li>
                </ul>
            </div>

            <div class="sheet_body">
                <volist name="dateList" id="vo" mod="7">
                    <div class='{$vo.is_day_info}dyg <if condition="$mod eq 0">first<elseif condition="$mod eq 6" />end</if>'>
                         <a href="{:U('Jxsygl/syxmfpsq', array('m_id' => $vo['dateInfo']['mon'], 'd_id' => $vo['dateInfo']['mday']))}">
                        <div style="height: 24px;display: block;width: 140px;">
                            <div class="ri">{$vo.dateInfo.mday}</div>
                            <div class="yuefen">{$vo.dateInfo.mon}月</div>
                        </div>
                        </a>
                        <notempty name="vo.project_duty">
                            <div style="display: block;width: 140px;line-height: 16px; padding:5px;" title="{$vo.project_duty.title_show}">
                                <div>{$vo.project_duty.zbr_show}</div>
                            </div>
                        </notempty>
                    </div>
                </volist>
            </div>
        </div>
    </div>

</div>
<style>
    #button_win{cursor:pointer;}
    </style>
<script type="text/javascript" src="{:JS}daterangepicker.min.js"></script>
<script type="text/javascript">
    $(".datepick").datetimepicker({format : "yyyy-mm-dd", minView : 2, autoclose : true});
    var Duty_full = function (){
        $(".navbar-side").hide();
        $("#page-wrapper").css({"margin-left":"0px"});
        $("#button_win").html("点击显示菜单");

        $("#button_win").unbind();
        $("#button_win").bind("click",Duty_default);
    };
    var Duty_default = function (){
        $(".navbar-side").show();
        $("#page-wrapper").css({"margin-left":"200px"});
        $("#button_win").html("点击隐藏菜单");

        $("#button_win").unbind();
        $("#button_win").bind("click",Duty_full);
    };
    $(document).ready(function(){
        Duty_full();
        $("#button_win").bind("click",Duty_default);
    });

</script>